/*
 *
 */
// 验证用户信息
var auth = {};
auth.authenticate = function(models, name, pass, fn) {

}

auth.requiredAuthentication = function(req, res, next) {
	if (req.session.username) {
		next();
	} else {
		req.session.error = 'Access denied!';
		res.redirect('/login');
	}
}

auth.userExist = function(req, res, next) {

}
module.exports = auth;